# Contributor: Kay Thomas <kaythomas@pm.me>
# Maintainer: Kay Thomas <kaythomas@pm.me>
pkgname=jack_capture
pkgver=0.9.73_git20210429
# Upstream hasn't cut a release since May 2017 and there have been several
# changes since then. There's currently an open issue to cut a new release.
_commit=fa6f2907e4119a9c59e8d4abed0e32c4422a5523
pkgrel=2
pkgdesc="Program for recording soundfiles with jack"
url="https://github.com/kmatheussen/jack_capture"
arch="all"
license="GPL-2.0-or-later"
makedepends="bash jack-dev liblo-dev lame-dev libsndfile-dev"
source="https://github.com/kmatheussen/jack_capture/archive/$_commit/jack_capture-$_commit.tar.gz"
builddir="$srcdir/$pkgname-$_commit"
options="!check" # No testsuite

[ "$CARCH" = "riscv64" ] && options="$options textrels"

build() {
	make
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="
966e901b86a331eb1f708bb785e168291489b804c9631588d86091d99ec0d813fe687382f8db3cefc6393e3b4e0b256ecd2eba916ce9fbc1a2aad31ab8d73c7f  jack_capture-fa6f2907e4119a9c59e8d4abed0e32c4422a5523.tar.gz
"
